package com.bingxue.edu.management.education.model.query;

import com.bingxue.edu.common.enums.EnrollmentStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "报名信息分页查询请求")
public class EnrollmentQuery extends CommonClassQuery {

    @Schema(description = "销售顾问id")
    private String sellerId;

    @Schema(description = "学生id")
    private String studentId;

    @Schema(description = "状态")
    private List<EnrollmentStatusEnum> status;

    private LocalDate createDateFrom;
    private LocalDate createDateTo;

    public LocalDate getCreateDateTo() {
        return createDateTo == null ? null : createDateTo.plusDays(1);
    }
}
